package com.tj.collection;

import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * Created with IntelliJ IDEA.
 * User: pavan
 * Date: 2020/2/11
 * Time: 上午10:45
 */
@SpringBootApplication
@ComponentScan(basePackages = {
        "com.fqgj.common",
        "com.tj.collection"
})
@ImportResource({
        "classpath*:app-redis.xml",
        "classpath*:oss-service.xml",
        "classpath:spring-datasource.xml",
/*
        "classpath:dubbo-provider.xml",
*/
        "classpath:dubbo-consumer.xml",
        "classpath:mybatis-config.xml",
})
@EnableTransactionManagement
@EnableScheduling
@EnableAsync
@MapperScan(basePackages = {"com.tj.collection.db.admin.dao.mp"})
@NacosPropertySource(dataId = "sc-admin", autoRefreshed = true)
@EnableSwagger2
public class MebooAdminApiApplication {
    public static void main(String[] args) {
        SpringApplication.run(MebooAdminApiApplication.class, args);
    }
}
